DisplayManagerCompat

Properties

Link copied to clipboard
val DISPLAY_CATEGORY_BUILT_IN_DISPLAYS: String = "android.hardware.display.category.BUILT_IN_DISPLAYS"
Display category: Built in displays.
Link copied to clipboard
val DISPLAY_CATEGORY_PRESENTATION: String = "android.hardware.display.category.PRESENTATION"
Display category: Presentation displays.

Functions

Link copied to clipboard
@Nullable
open fun getDisplay(displayId: Int): @Nullable Display
Gets information about a logical display.
Link copied to clipboard
open fun getDisplays(): @NonNull Array<Display>
Gets all currently valid logical displays.
open fun getDisplays(@Nullable category: @Nullable String): @NonNull Array<Display>
Gets all currently valid logical displays of the specified category.
Link copied to clipboard
@NonNull
open fun getInstance(@NonNull context: @NonNull Context): @NonNull DisplayManagerCompat
Gets an instance of the display manager given the context.